<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>对齐</title>
    <style>
        div{
            /* 默认是左对齐 */
            text-align: center;
        }
        h1{
            text-align: center;
        }
        a{
            /* 去除下划线 */
            text-decoration: none;
            /* 增加下划线 */
            /* text-decoration: overline; */
        }
    </style>
</head>
<body>
    <h1>标题1</h1>
    <div><img src="./test.jpg" alt=""></div>
    <a href="https://gitee.com/chihiro-wyj/following">gitee</a>
</body>
</html>